﻿<UserControl x:Class="ClientCenter.Controls.LogGrid"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <DataGrid AutoGenerateColumns="False" Name="LogGridList" AreRowDetailsFrozen="True" SelectionUnit="Cell" LoadingRow="LogGridList_LoadingRow">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=LogText}" Header="Log Text" MaxWidth="1000" MinWidth="50">
                    <DataGridTextColumn.ElementStyle>
                        <Style>
                            <Setter Property="TextBlock.TextWrapping" Value="Wrap" />
                            <Setter Property="TextBlock.TextAlignment" Value="Left"/>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
                <DataGridTextColumn Binding="{Binding Path=Component}"  Header="Component"/>
                <DataGridTextColumn Binding="{Binding Path=Date, StringFormat=\{0:yyyy.MM.dd HH:mm:ss.fff\}}" Header="DateTime"/>
            </DataGrid.Columns>
        </DataGrid>

    </Grid>
</UserControl>
